package org.zjx;

import com.sun.jna.platform.win32.User32;
import com.sun.jna.platform.win32.WinDef;
import org.zjx.dom4j.XmlUtils;
import org.zjx.dom4j.XmlUtils1;
import org.zjx.swing.controller.LiterateController;
import org.zjx.swing.controller.LoginController;
import org.zjx.swing.controller.SceneController;
import org.zjx.swing.model.LiterateModel;
import org.zjx.swing.model.LoginModel;
import org.zjx.swing.model.SceneModel;
import org.zjx.swing.view.LiterateView;
import org.zjx.swing.view.LoginView;
import org.zjx.swing.view.SceneView;
import org.zjx.util.FileUtil;
import org.zjx.util.ImageUtil;

import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Base64;
import java.util.List;

import static org.zjx.swing.view.PropView.getHwndS;

public class Main {


    public static void main(String[] args) throws IOException {
        LoginView view = new LoginView();
        LoginModel model = new LoginModel();
        LoginController controller = new LoginController(view, model);


        List<String> urls = new ArrayList<>();
        SwingUtilities.invokeLater(() -> {
            try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            } catch (Exception e) {
                e.printStackTrace();
            }
        });
        view.setVisible(true); // 显示登录界面
    }
}
